<?PHP 
require_once './controleAcesso.php';
//session_start('conexao');
//$session_perfil['pac_sistema'] = "dimme";
//$session_perfil['pac_perfil'] = "Administrador";
//$_SESSION['session_perfil'] =  "Administrador";	
//$_SESSION['session_user'] =  "Ronan";
header("Content-Type: text/html; charset=UTF-8", true); 

 
$pastaDB = "./db/";

$mobile_browser = false;
if(preg_match('/(up.browser|up.link|mmp|symbian|smartphone|midp|wap|phone)/i',
strtolower($_SERVER['HTTP_USER_AGENT']))){
$mobile_browser=true;
}

if((strpos(strtolower($_SERVER['HTTP_ACCEPT']),'application/vnd.wap.xhtml+xml')>0) or
((isset($_SERVER['HTTP_X_WAP_PROFILE']) or isset($_SERVER['HTTP_PROFILE'])))){
$mobile_browser=true;
}

if($mobile_browser){$css = "./css/style_mobile.css";} 
//else {$css = "./../timeline/css/style.css";}

//require_once 'inc/header.php';

?>

<!DOCTYPE html>
<html xmlns:fo="http://www.w3.org/1999/XSL/Format">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
		<meta http-equiv="X-UA-Compatible" content="IE=7" />
		
		<title>Dimme</title>
		
		<script type="text/javascript" src="./js/jquery-1.8.3.min.js"></script>
                <!--
		<script type="text/javascript" src="./js/WidthHeightDivs.js"></script>
		<script type="text/javascript" src="./js/configuraModal.js"></script>
		<script type="text/javascript" src="./js/util.validate.js"></script>	
		<script type="text/javascript" src="./js/DD_roundies.js"></script>
		
		<script type="text/javascript" src="./js/jquery.maskedinput.js"></script>
  -->
		<link href="./css/styleAuxiliar.css" rel="stylesheet" type="text/css" />
		<link href="./css/style2.css" rel="stylesheet" type="text/css" />
		
		
		<!-- ** UTILIZANDO A API ** 
		<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.0/themes/base/jquery-ui.css" />
		<script type="text/javascript" src="./js/configuraModalIE.js"></script>
		<script type='text/javascript' src='http://srvdevel.cgee.org.br:8082/suc/API/login/api.login.js'></script>
		-->
		<script type='text/javascript' >
//			$(document).ready(function(){
//				var flagMostrarAPI = <?PHP //echo $apiLogin;?>;  
//				console.log(flagMostrarAPI);
//				if(flagMostrarAPI == 1){
//					$("#geral").hide();
//					$("#Mascara").hide();
//					$("#boxModal").hide();
//					$("#conteudoModal").hide();
//					$.login({
//						url: window.location.href,
//						object: $("#containerLogin")
//					});	
//				}
//			});
		</script>
	</head>

	<BODY>
            <div id="boxModal">
                    <div id ="topoModal" style="position:relative; width: 300; height: 40;">
                            <!-- <img src="./images/cgee01.png" height = "80" />
                            <p align="center" id="tituloModal" style="position: absolute; top: 0px; left: 40%; float: left;"> <strong>  </strong> </p>
                            <span id="Close" style="position: absolute; left: 95%; float: right; top: 1%;"> <strong> [X] </strong> </span> 
                            <br>
                            -->
                    </div>
                    <div id="conteudoModal" style="position:relative;"></div>
            </div>
            <div id="Mascara"></div> 
            <div id="geral">
                    <div id="cabecalho">
                            <?PHP require './cabecalho.php';?>
                    </div>
                    <div id="menu">
                            <?PHP require './menu.php';?>
                    </div>
                    <div id="corpo">
                            <?PHP require './services/empresa.php';?>
                    </div>
                    <div id="rodape">
                            <?PHP //require './rodape.php';?>
                    </div>
            </div>
	</BODY>
</html>
